package com.easy.dao;

import com.easy.bean.Order;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface OrderDao {
    int add(@Param("order") Order order);

    int edit(@Param("order") Order order);

    int delete(@Param("orderid") int orderid,@Param("userid") int userid);

    int del(@Param("orderid") int orderid);

    List<Order> getList(@Param("page") Page page, @Param("text") String text, @Param("id") int userid);

    Order getOrderById(@Param("orderid") int orderid,@Param("userid") int userid);

    int getCount(@Param("text") String text,@Param("id") int userid);

    Order getOrder(@Param("order") Order order);

    Order getOrderByID(@Param("orderid") int orderid);

    int paymentSuccess(@Param("orderid")int orderid);

    int cancleOrder();

    List<Order> getList1(@Param("page") Page page, @Param("text") String text);

    int getCount1(@Param("text") String text);

    int change(@Param("order")Order order);

    int add1(@Param("order")Order order);
}
